package jschool.manejadores;

import java.util.Locale;
import java.util.ResourceBundle;

public class ManejadorDeIdioma {
	@SuppressWarnings("unused")
	private ResourceBundle bundle = null;
	private static ManejadorDeIdioma instancia = null;

	public static ManejadorDeIdioma getInstancia() {
		if (instancia == null) {
			instancia = new ManejadorDeIdioma();
		}
		return instancia;
	}

	public ResourceBundle getBundle(String idioma, String locale) {
		return bundle = ResourceBundle.getBundle("Idiomas/Label", new Locale(
				idioma, locale));
	}

}
